package dao;

import java.sql.ResultSet;
import java.sql.SQLException;

public class UsuarioDAO extends DAO{

	public boolean validarUsuario(String usuario, String password) {
		String query = "select * from usuario where usuario = '" + usuario + "' and password = '" + password + "'";
		ResultSet rs = super.executeQuery(query);
		try {
			if(rs.next())
				return true;
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return false;
	}

}
